package com.etone.smartAudit.config;

import com.etone.smartAudit.service.AdminPermissionService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author: sovy
 * @date: 2021-06-25 17:48:31
 * @description:
 */
@Log4j2
@Component
public class InitConfig implements CommandLineRunner {
    @Autowired
    private AdminPermissionService adminPermissionService;

    @Override
    public void run(String... args) throws Exception {
        adminPermissionService.initPermission();
    }

}
